TAR=cmovtest
OBJ=cmovtest.o

ASFLAGS+=--32
DLD=-dynamic-linker /lib/ld-linux.so.2
LDFLAGS+=-m elf_i386 -lc

$(TAR):$(OBJ)
	ld $(DLD) $(LDFLAGS) -o $@ $^

%.o:%.S
	as $(ASFLAGS) -o $@ $^

clean:
	$(RM) -r *.o $(TAR)
